const initialState = {
    // 文章详情数据
    info: {},
  }

  export function article (state = initialState ,action) {
    const { type , payload} = action
    switch (type) {
        case ('article/setArticleInfo'):
            return {
                ...state,
                info: payload,
            }
        default: 
            return state
    }
  }